<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>短信记录新增</title>
<link rel="stylesheet" type="text/css"
	href="/bsc/static/common/bootstrap/css/bootstrap.min.css" />
<script src="/bsc/static/js/jquery-3.1.1.js" type="text/javascript"
	charset="utf-8"></script> 
<script
	src="/bsc/static/common/bootstrap/js/bootstrap-3.3.7-dist/js/bootstrap.min.js"
	type="text/javascript" charset="utf-8"></script>
<script
	src="/bsc/static/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table.min.js"
	type="text/javascript" charset="utf-8"></script>
<script
	src="/bsc/static/common/bootstrap/js/bootstarp-table-1.11.1/bootstrap-table-zh-CN.min.js"
	type="text/javascript" charset="utf-8"></script> 
<link rel="stylesheet" type="text/css"
	href="../static/common/global.css" media="all">
 <link rel="stylesheet" type="text/css" href="../static/css/personal.css"
	media="all">
	<link rel="stylesheet" type="text/css"
	href="/bsc/static/common/layui/css/layui.css" media="all">
</head>
<body>
<section class="layui-larry-box">
<blockquote class="layui-elem-quote news_search">
	<form method="post" id="formName" action="/bsc/bissms/save" onsubmit="return check()">
			发送消息
			</blockquote>
			<!-- <fieldset> -->
			<table class="table-hover table-condensed table-bordered" width="60%">
				<tr>
					<td>收件人：</td>
					<td><input type="text" name="mobile" id="mobile" placeholder="请输入手机号码"
					style="min-width: 200px; min-height: 35px;"></td>
				</tr>
				<!-- <tr>
					<td>短信类型：</td>
					<td>
					<select class="form-control" name="sms_type" id="sms_type">
							<option value="-1">请选择</option>
							<option value="1">普通验证</option>
							<option value="2">短信验证</option>
							<option value="3">支付验证</option>
					</select>
					</td>
				</tr> -->
				<!-- <tr>  
					<td>短信内容：</td>
					<td><textarea rows="7" cols="50" id="content"
							placeholder="请输入发送内容" name="content"></textarea></td>
				</tr> -->
			</table>
			<!-- </fieldset> -->
			<button type="submit" class="btn btn-primary">发送短信</button>
			<input type="button" class="btn btn-danger" id="btn"
				value="关&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;闭" style="height: 35px;">
	</form> 
</section>
</body>
</html>
<script>
	$(document).ready(function() {
		$("#btn").click(function() {//绑定
			window.location.href = "http://localhost:8080/bsc/bissms/list"

		});
	});
	
	function check(){
		var mobile=$("#mobile").val();
		var sms_type=$("#sms_type").val();
		var content=$("#content").val();
//			console.log(content);
		if(mobile==null||mobile==""){
			alert("请输入手机号码!");
			return false;
		}
		/* if(sms_type==null||sms_type==""){
			alert("请选择发送类型!");
			return false;
		} */
		/* if(content==null||content==""){
			alert("请输入发送内容!");
			return false;
		} */
		return true;
	}	
</script>